package com.qys.livesMall.financial.controller.app;

import com.qys.livesMall.common.result.R;
import com.qys.livesMall.financial.model.vo.app.APPOfflineShortVideoVO;
import com.qys.livesMall.financial.service.OfflineShortVideoService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/app/offlineShortVideo")
@Tag(name = "APP-用户线下理财信息")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class APPOfflineShortVideoController {

    private final OfflineShortVideoService offlineShortVideoService;

    @GetMapping("/getVideoInfo")
    @Operation(summary = "获取短视频信息")
    public R<APPOfflineShortVideoVO> getVideoInfo() {
        return R.ok(offlineShortVideoService.getOfflineShortVideoByApp());
    }
}
